package com.qiyeji.real_estate.mapper;

import com.qiyeji.real_estate.entity.payroll;
import com.qiyeji.real_estate.entity.payrollKey;
import org.apache.catalina.LifecycleState;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

@Mapper
@Repository
public interface payrollMapper {
    int deleteByPrimaryKey(payrollKey key);

    int insert(payroll record);

    int insertSelective(payroll record);

    payroll selectByPrimaryKey(payrollKey key);

    int updateByPrimaryKeySelective(payroll record);

    int updateByPrimaryKey(payroll record);

    List<payroll> getAllPayroll();

    List<payroll> getPayrollBySName(String sName);

    List<payroll> getPayrollByDate(String Date);

    List<payroll> getPayrollByD(String dName);

    CopyOnWriteArrayList<payroll> getPayrollForExcel(String date);
}